<template>
	<view class="container">
		<u-navbar leftIconColor="#fff"  title="活动规则" placeholder bgColor="transparent" :autoBack="true"></u-navbar>
		<view class="pad-30">
			<view class="conent">
				<u-parse v-if="info" :content="info.desc"></u-parse>
				<u-empty v-else text="暂无活动" icon="../../static/image/empty.png"></u-empty>
			</view>
		</view>
	</view>
</template>

<script>
	import {
		inviteActivity
	} from '@/config/api.js'

	export default {
		data() {
			return {
				info: {}
			}
		},
		onLoad() {
			this.getDataInfo();
		},
		methods: {
			// 获取拉新规则
			getDataInfo() {
				inviteActivity().then(res => {
					this.info = res.data.info;
				})
			}
		}
	}
</script>

<style scoped lang="scss">
	.container {
		min-height: 100vh;

		.conent {
			width: 100%;
			min-height: 50vh;
			background-color: #fff;
			border-radius: 24rpx;
			padding: 40rpx;
			box-sizing: border-box;
		}
	}
</style>